import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'

// global loading
import globalLoading from '@/utils/globalLoading'

// common style
import '@/assets/styles/index.scss'

// Element Plus
import 'element-plus/theme-chalk/el-message.css'
import 'element-plus/theme-chalk/el-message-box.css'
import registerIcon from './utils/elementPlusIcon'

const app = createApp(App)

app
  .use(router)
  .use(store)
//   .use(ElementPlus, { size: 'small', zIndex: 1000, locale: zhCn })

registerIcon(app)
app.config.globalProperties.$loading = globalLoading
app.mount('#app')
